<div class=main_menu_outer>
	<div class=main_menu_inner>
		<ul class=main_menu>
			<li><a href='<?php echo base_url(); ?>'>Home</a></li>
			<li>
				<a href='<?php echo base_url(); ?>products'>
					Products
					<ul class=sub_menu>
						<li><a href='<?php echo base_url(); ?>products/dvds'>DVDs</a></li>
					</ul>
				</a>
			</li>
			<li><a href='<?php echo base_url(); ?>about'>About</a></li>
			<li><a href='<?php echo base_url(); ?>contact'>Contact</a></li>
			<li><a href='<?php echo base_url(); ?>admin'>
				Admin
				<ul class=sub_menu>
					<li><a href='<?php echo base_url(); ?>admin/dvds/'>DVDs</a></li>
					<li><a href='<?php echo base_url(); ?>admin/add_dvd/'>Add DVD</a></li>
				</ul>
			</a></li>
		</ul>
		<div class=login_panel>
			<div class=login_panel_inner>
				<?php
				if($logged_in)
				{
				?>
				<a href='<?php echo base_url(); ?>user/logout'>Logout</a>
				<?php
				}
				else
				{
				?>
				<a href='<?php echo base_url(); ?>user/login'>Login</a>
				<a href='<?php echo base_url(); ?>user/register'>Sign Up</a>
				<?php
				}
				?>
			</div>
		</div>
	</div>
</div>

<div class=cart_preview>
	Cart Preview
	<?php
	foreach($cart as $item)
	{
		$this->table->add_row(array(
			img(array(
				'src' => 'uploads/dvd_covers/'.$item['dvd_cover'],
				'width' => '30px'
			)),
			'&pound;'.$item['price'],
			$item['name']
		));
	}
	echo $this->table->generate();
	$this->table->clear();
	echo '<div style="margin-top: 10px">Total: &pound;'.$this->cart->total().'</div>';
	?>
</div>

<div class=content>